package com.fire.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.fire.bo.collage.req.CollageGoodListReq;
import com.fire.bo.collage.req.CollageGoodNumListReq;
import com.fire.bo.collage.req.CollageGoodReq;
import com.fire.bo.collage.req.CollageGoodStatusReq;
import com.fire.bo.collage.req.GofireNameReq;
import com.fire.bo.collage.req.GofireProductReq;
import com.fire.bo.collage.req.GofireReq;
import com.fire.bo.collage.res.CollageGoodListRes;
import com.fire.bo.collage.res.CollageGoodNumListRes;
import com.fire.bo.collage.res.GofireProductRes;
import com.fire.bo.collage.res.GofireRes;
import com.fire.bo.collage.res.GofireTotalRes;
import com.fire.bo.coupon.req.DelCouponReq;
@Mapper
public interface CollageGoodDao {

	/**
	 * 新增拼单数量
	 */
	void addCollageGoodNum(CollageGoodReq bean) throws SQLException;

	/**
	 * 审核
	 */
	void updateCollageGoodStatus(CollageGoodStatusReq bean) throws SQLException;
	
	/**
	 * 拼单设置列表
	 */
	List<CollageGoodListRes> findGoodList(CollageGoodListReq bean) throws SQLException;
	
	int findGoodListCount(CollageGoodListReq bean) throws SQLException;
	
	/**
	 * 拼单审核列表
	 */
	List<CollageGoodNumListRes> findGoodNumList(CollageGoodNumListReq bean) throws SQLException;
	
	/**
	 * 单个商品 
	 */
	Map<String, Object> getCollageProject(Map<String, Object> map) throws SQLException;
	
	/**
	 * 新增火拼商品
	 */
	void addCollagerProject(Map<String, Object> map) throws SQLException;
	
	/**
	 * 新增商品
	 */
	void addGofireProject(GofireProductRes bean) throws SQLException;
	
	/**
	 * 修改商品
	 */
	void updateGofireProject(GofireProductRes bean) throws SQLException;
	
	/**
	 * 列表商品
	 */
	List<GofireProductRes> gofireProjectList(GofireProductReq bean) throws SQLException;
	
	int gofireProjectListCount(GofireProductReq bean) throws SQLException;
	/**
	 * 单个商品
	 */
	GofireProductRes gofireProjectById(DelCouponReq bean) throws SQLException;
	
	/**
	 * 删除商品
	 */
	void delgofireProject(DelCouponReq bean) throws SQLException;
	
	int collageCount(Map<String, Object> map) throws SQLException;
	
	/**
	 * 新增用户拼单
	 */
	void addGoFire(GofireReq info) throws SQLException;
	
	/**
	 * 修改用户拼单
	 */
	void updateGoFire(GofireRes info) throws SQLException;
	
	/**
	 * 列表查询
	 */
	List<GofireRes> findAllFireRes(GofireNameReq info) throws SQLException;
	int findAllFireResCount(GofireNameReq info) throws SQLException;
	
	/**
	 * 查询单个
	 */
	GofireRes findFireResInfo(DelCouponReq info) throws SQLException;
	
	/**
	 * 统计列表
	 */
	List<GofireTotalRes> findGofireTotalRes(GofireNameReq info) throws SQLException;
	
}
